package com.demo.word2html.poi.support.office2007;

import org.apache.poi.xwpf.converter.xhtml.SimpleContentHandler;
import org.xml.sax.SAXException;

import java.io.Writer;

/**
 * @author fenggang.li
 * @create 2019-09-11 17:46
 */
public class EntityConvertContentHandler extends SimpleContentHandler {

    public EntityConvertContentHandler(Writer writer) {
        super(writer);
    }

    public EntityConvertContentHandler(Writer writer, Integer indent) {
        super(writer, indent);
    }

    @Override
    protected void flushCharacters(String characters) throws SAXException {
        characters = H5EntityConverter.convertHtml2Xsl(characters);
        super.flushCharacters(characters);
    }
}
